package com.ruoyi.mes.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 产品订单对象 pro_order
 *
 * @author LongAndHao
 * @date 2023-04-04
 */
public class ProOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 生产计划ID */
    private String progId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNumber;

    /** 订单名称 */
    @Excel(name = "订单名称")
    private String orderName;

    /** 产品ID */
    private Long proId;

    /** 客户 */
    @Excel(name = "客户")
    private String custom;

    /** 需求数量 */
    @Excel(name = "需求数量")
    private Long orderDemandNum;

    /** 成交额 */
    @Excel(name = "成交额")
    private BigDecimal BusinessVolume;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long orderStatus;

    /** 订单部分完成状态   0-未完成 1-部分完成 2-已完成*/
    @TableField(exist = false)
    private Long status;

    public BigDecimal getBusinessVolume() {
        return BusinessVolume;
    }

    public void setBusinessVolume(BigDecimal businessVolume) {
        BusinessVolume = businessVolume;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProgId(String progId)
    {
        this.progId = progId;
    }

    public String getProgId()
    {
        return progId;
    }
    public void setOrderNumber(String orderNumber)
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber()
    {
        return orderNumber;
    }
    public void setOrderName(String orderName)
    {
        this.orderName = orderName;
    }

    public String getOrderName()
    {
        return orderName;
    }
    public void setProId(Long proId)
    {
        this.proId = proId;
    }

    public Long getProId()
    {
        return proId;
    }
    public void setCustom(String custom)
    {
        this.custom = custom;
    }

    public String getCustom()
    {
        return custom;
    }
    public void setOrderDemandNum(Long orderDemandNum)
    {
        this.orderDemandNum = orderDemandNum;
    }

    public Long getOrderDemandNum()
    {
        return orderDemandNum;
    }
    public void setOrderStatus(Long orderStatus)
    {
        this.orderStatus = orderStatus;
    }

    public Long getOrderStatus()
    {
        return orderStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("progId", getProgId())
            .append("orderNumber", getOrderNumber())
            .append("orderName", getOrderName())
            .append("proId", getProId())
            .append("custom", getCustom())
            .append("orderDemandNum", getOrderDemandNum())
            .append("orderStatus", getOrderStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
